From: Owen W. Taylor Date: Wed, 7 Oct 2009 18:52:18 +0000 (-0400) Subject: Fix positioning of the Calendar on multihead X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10763 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4c6f770dea7b06c5340778c70726949613e20327;p=gnome-shell.git Fix positioning of the Calendar on multihead Parens were in the wrong place, resulting in the calendar not being properly centered on the primary monitor. https://bugzilla.gnome.org/show_bug.cgi?id=597078 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index becd8446f..7917e34ed 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -546,7 +546,7 @@ CalendarPopup.prototype = { // Reset the calendar to today's date this.calendar.setDate(new Date()); - this.actor.x = Math.round((panelActor.x + panelActor.width - this.actor.width) / 2); + this.actor.x = Math.round(panelActor.x + (panelActor.width - this.actor.width) / 2); this.actor.lower(panelActor); this.actor.show(); Tweener.addTween(this.actor,